package cn.chiship.framework.upms.biz.system.service;

import cn.chiship.sdk.framework.base.BaseService;
import cn.chiship.sdk.core.base.BaseResult;
import cn.chiship.framework.upms.biz.system.entity.UpmsEmailSetting;
import cn.chiship.framework.upms.biz.system.entity.UpmsEmailSettingExample;

import java.util.List;

/**
 * 三方邮件发送业务接口层
 * 2021/9/30
 * @author lijian
 */
public interface UpmsEmailSettingService extends BaseService<UpmsEmailSetting,UpmsEmailSettingExample> {
    /**
     * 配置系统邮箱
     * @param upmsEmailSetting
     * @return
     */
    BaseResult configSystemEmail(UpmsEmailSetting upmsEmailSetting);

    /**
     * 获得邮箱配置信息
     * @param outreachInfoId
     * @param type
     * @return
     */
    List<UpmsEmailSetting> getEmailConfigByUserIdAndType(String outreachInfoId, String type);

}
